package com.sp.scmdb.daoImpl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sp.scmdb.common.dao.BaseDaoSupport;
import com.sp.scmdb.dao.LabelIODao;
import com.sp.scmdb.entity.LabelIO;

@Repository
public class LabelIODaoImpl extends BaseDaoSupport<LabelIO> implements LabelIODao {

	@SuppressWarnings("unchecked")
	public List findLabel(String sql) {
		return findByQueryOfSql(sql);
	}

	@SuppressWarnings("unchecked")
	public List<LabelIO> findByHql(String Hql) {
		return findByQuery(Hql);
	}
	
	@SuppressWarnings("unchecked")
	public List findBySql(String sql){
		return findByQueryOfSql(sql);
	}
	
	@Override
	public void excute(String sql){
		this.execute(sql);
	}
}
